package org.xtb.fun3;

import java.util.ArrayList;
import java.util.Arrays;

public class Input implements Observer {

    private ArrayList<String> lineTxt = new ArrayList<>();

    public ArrayList<String> getLineTxt() {
        return lineTxt;
    }
    private  String input;

    public Input(String input) {
        this.input = input;
    }

    @Override
    public void toDo() {
        String[] lines = input.split("\n");
        lineTxt.addAll(Arrays.asList(lines));
    }
}
